#ifndef COLOR_TRANSITION_H
#define COLOR_TRANSITION_H

#include "../../anime/utils.h"

#include <QColor>


using namespace anime;

class ColorTransition
{
public:
    enum TransitionType
    {
        RedOnly,
        GreenOnly,
        BlueOnly,
        AlphaOnly,
        AllChannels
    };

    ColorTransition( Animation* _src, const QColor& start, const QColor& end,
                     TransitionType _ttype = AllChannels, int startTime = 0,
                     int endTime = -1 );
    ~ColorTransition( void );

    int r, g, b, a;

    void GetColor( QColor& toFill );

private:
    TransitionType ttype;
    IntGraph graph;
};


#endif // COLOR_TRANSITION_H
